﻿--|--------------------------------------------------------------------------------
--| [DeleteEntity] - Update Procedure Script for Entity
--|--------------------------------------------------------------------------------
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id (N'[dbo].[DeleteEntity]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) 
	DROP PROCEDURE [dbo].[DeleteEntity]
GO

CREATE PROCEDURE [dbo].[DeleteEntity]
(
	@ID int
)
AS
	SET NOCOUNT ON

	DELETE 
	FROM   [Entity]
	WHERE  
		[ID] = @ID

	RETURN @@Error 
GO